﻿using System;
using System.Collections.Generic;
using Model.AuthModel;
namespace IDAL.AuthModel
{
    /// <summary>
    /// 通用组件，权限模型，接口层，权限
    /// </summary>
    public interface IAuth
    {
        /// <summary>
        /// 更新权限
        /// </summary>
        /// <param name="moduleid">模块编号</param>
        /// <param name="funcs">功能列表</param>
        /// <returns></returns>
        bool UpdateAuth(int moduleid, string funcs);

        /// <summary>
        /// 获取模块所拥有的功能
        /// </summary>
        /// <param name="condition"></param>
        /// <returns></returns>
        IList<AuthInfo> ListAuth(AuthCondition condition);
    }
}
